<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <style>
    /* 一般和字体有点关系都能继承 */
  div.box{
color:red;
  }
  
  </style>
</head>
<body>
  
<div class="box">
<h1>我是h1元素</h1>
<p>我是p元素</p>
  <span>我是span元素</span>
</div>
</body>
</html>